 package com.yh.ldzl.service.impl;

import com.yh.ldzl.mapper.LotTraceabilityMapper;
import com.yh.ldzl.service.LotTraceabilityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 批次追溯Service实现
 * 
 * @author yanghuai
 * @date 2025-07-10
 */
@Service
public class LotTraceabilityServiceImpl implements LotTraceabilityService {
    @Autowired
    private LotTraceabilityMapper lotTraceabilityMapper;

    /**
     * 查询批次追溯列表
     * 
     * @param params 查询参数
     * @return 批次追溯列表
     */
    @Override
    public List<Map<String, Object>> selectLotTraceabilityList(Map<String, Object> params) {
        return lotTraceabilityMapper.selectLotTraceabilityList(params);
    }

    @Override
    public List<Map<String, Object>> selectLotTraceabilityBatchCodeOqc(Long sales_id) {
        return lotTraceabilityMapper.selectLotTraceabilityBatchCodeOqc(sales_id);
    }
    
    /**
     * 根据批次号查询产品销售信息
     *
     */
    @Override
    public List<Map<String, Object>> selectLotTraceabilityBatchCodeCkProductSales(Long sales_id) {
        return lotTraceabilityMapper.selectLotTraceabilityBatchCodeCkProductSales(sales_id);
    }
    

}